var rules = {
    "home":"#home",
    "pressure":"#drawPage",
    "temperature":"#drawPage",
    "drilling":"#drawPage",
    "torque":"#drawPage",
    "vibration":"#drawPage",
    "more":"#more",
    "setting":"#setting",
}
function route(menu) {
    var noChart = ["home","setting"]
    if(sourceData.length === 0 && noChart.indexOf(menu) === -1){
        route("setting");
    }else {
        $(".block").hide();
        chartMenu = menu;
        clear1();
        moreClear();
        $(rules[menu]).show();
    }
}
$(document).ready(function () {
    route("home");
})